package com.itheima.service.system;

import com.github.pagehelper.PageInfo;
import com.itheima.domain.system.Module;

import java.util.List;
import java.util.Map;

public interface ModuleService {
    PageInfo<Module> queryPage(Integer pageNum, Integer pageSize)throws Exception;

    List<Module> findAll() throws Exception;

    Module findById(String id) throws Exception;

    void save(Module module) throws Exception;

    void update(Module module)throws Exception;

    void deleteById(String... ids)throws Exception;

    List<Map> findAuthor(String id)throws Exception;

    List<Map> findModulesByUserId(String userId)throws Exception;
}
